<%@ Control Language="C#" AutoEventWireup="true" CodeFile="EditQuoteForm.ascx.cs" Inherits="Beta_fundies_controls_quotes_EditQuoteForm" %>
<asp:MultiView ID="mviewQuote" runat="server">
    <asp:View runat="server" ID="viewEdit">
        <asp:Label runat="server" ID="lblMsg"
            Visible="False"
            Text="Changed Saved"
            EnableViewState="False" ForeColor="Green" />
        <p>
        Fundie:<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtFundie"
                ErrorMessage="Required Field" ValidationGroup="EditQuote"></asp:RequiredFieldValidator><br />
        <asp:TextBox runat="server" ID="txtFundie" />
        </p>
        <p>
        Quote:<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtQuote"
                ErrorMessage="Required Field" ValidationGroup="EditQuote"></asp:RequiredFieldValidator><br />
        <asp:TextBox runat="server" ID="txtQuote"
            TextMode="multiLine"
            Columns="60"
            Rows="20"/>
        </p>
        <p>
        Board:<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtBoard"
                ErrorMessage="Required Field" ValidationGroup="EditQuote"></asp:RequiredFieldValidator><br />
        <asp:TextBox runat="server" ID="txtBoard" />
        </p>
        <p>
        URL:<asp:CustomValidator ID="CustomValidator1" runat="server" ControlToValidate="txtUrl"
                EnableClientScript="False" ErrorMessage="Invalid Url" OnServerValidate="CustomValidator1_ServerValidate"
                ValidateEmptyText="True" ValidationGroup="EditQuote"></asp:CustomValidator><br />
        <asp:TextBox runat="server" ID="txtUrl" />
        </p>
        <p>
        TotalVotes:<asp:CompareValidator ID="CompareValidator1" runat="server" ControlToValidate="txtTotalVotes"
                ErrorMessage="Numbers only, please" Operator="DataTypeCheck" Type="Integer" ValidationGroup="EditQuote"></asp:CompareValidator><br />
        <asp:TextBox runat="server" ID="txtTotalVotes" />
        </p>
        <p>
        Number of Voters:<asp:CompareValidator ID="CompareValidator2" runat="server" ControlToValidate="txtNumberOfVoters"
                ErrorMessage="Numbers only, please" Operator="DataTypeCheck" Type="Integer" ValidationGroup="EditQuote"></asp:CompareValidator><br />
        <asp:TextBox runat="server" ID="txtNumberOfVoters" />
        </p>
        <p>
        Contributor:<br />
        <asp:TextBox runat="server" ID="txtContributor" />
        </p>
        <p>
            <br />
        <asp:CheckBox runat="server" ID="chkCreditContributor" Text="Credit Contributor" />
        </p>
        <p>
            Archive:<br />
            <asp:DropDownList runat="server" ID="ddlArchive"
                DataTextField="Title"
                DataValueField="ID"
                />
        </p>
        <p>
            <asp:Button ID="btnSave" runat="server" Text="Save" OnClick="btnSave_Click" ValidationGroup="EditQuote" />&nbsp;</p>
    </asp:View>
    <asp:View runat="server" ID="viewError">
        Quote not found.
    </asp:View>
</asp:MultiView>